using System;
using System.Diagnostics;

namespace AzureContrib.WindowsAzure.Diagnostics
{
	/// <summary>
	/// Provides <see cref="TraceSwitch"/> for implementations that are <see cref="ITraceSwitchable"/>.
	/// </summary>
	public interface ITraceSwitchProvider : IDisposable
	{
		/// <summary>
		/// Find the <see cref="TraceSwitch"/> for this <see cref="ITraceSwitchable"/>?
		/// </summary>
		/// <returns><see cref="TraceSwitch"/></returns>
		TraceSwitch GetSwitch(ITraceSwitchable traceSwitchable);
	}
}